# 1、导包
import unittest
from unittestreport import TestRunner
from screpit.test_myihrm import TestDemo

# 2、创建测试套件
suite = unittest.TestSuite()

# 3、添加测试集
suite.addTest(unittest.makeSuite(TestDemo))
# 4、创建runner对象
runner = TestRunner(suite,filename="report.html",report_dir="./reports",
           title='my测试报告',tester='测试员roiokie',
            desc="my项目测试生成的报告",templates=1)
# 5、执行
runner.run()